package com.itheima.lambda.practice02;

public class EatableDemo {
    public static void main(String[] args) {
        useEatable(new Eatable() {
            @Override
            public void eat() {
                System.out.println("吃苹果");
            }
        });
    }
    public static void useEatable(Eatable eatable){
        eatable.eat();
    }
}
interface Eatable{
    void eat();
}